package server.business.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@TableName(value ="return_blood_review")
@Data
public class ReturnBloodReview {


    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 调血申请id
     */
    @TableField(value = "return_blood_id")
    private String returnBloodId;

    /**
     * 申请人工号
     */
    @TableField(value = "applicant_id")
    private String applicantId;


    /**
     * 申请时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "apply_time")
    private Date applyTime;

    /**
     * 审核人工号
     */
    @TableField(value = "reviewer_id")
    private String reviewerId;

    /**
     * 审核时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "review_time")
    private String reviewTime;


    /**
     * 驳回原因
     */
    @TableField(value = "reject_reason")
    private String rejectReason;

    /**
     * 状态
     */
    @TableField(value = "state")
    private String state;


    /**
     * 逻辑删除
     */
    @TableLogic
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = -8797207438706562604L;

}
